package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SchedulesMapper;
import com.ruoyi.system.domain.Schedules;
import com.ruoyi.system.service.ISchedulesService;

/**
 * 车辆调度安排Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-12
 */
@Service
public class SchedulesServiceImpl implements ISchedulesService 
{
    @Autowired
    private SchedulesMapper schedulesMapper;

    /**
     * 查询车辆调度安排
     * 
     * @param scheduleId 车辆调度安排主键
     * @return 车辆调度安排
     */
    @Override
    public Schedules selectSchedulesByScheduleId(Long scheduleId)
    {
        return schedulesMapper.selectSchedulesByScheduleId(scheduleId);
    }

    /**
     * 查询车辆调度安排列表
     * 
     * @param schedules 车辆调度安排
     * @return 车辆调度安排
     */
    @Override
    public List<Schedules> selectSchedulesList(Schedules schedules)
    {
        return schedulesMapper.selectSchedulesList(schedules);
    }

    /**
     * 新增车辆调度安排
     * 
     * @param schedules 车辆调度安排
     * @return 结果
     */
    @Override
    public int insertSchedules(Schedules schedules)
    {
        return schedulesMapper.insertSchedules(schedules);
    }

    /**
     * 修改车辆调度安排
     * 
     * @param schedules 车辆调度安排
     * @return 结果
     */
    @Override
    public int updateSchedules(Schedules schedules)
    {
        return schedulesMapper.updateSchedules(schedules);
    }

    /**
     * 批量删除车辆调度安排
     * 
     * @param scheduleIds 需要删除的车辆调度安排主键
     * @return 结果
     */
    @Override
    public int deleteSchedulesByScheduleIds(Long[] scheduleIds)
    {
        return schedulesMapper.deleteSchedulesByScheduleIds(scheduleIds);
    }

    /**
     * 删除车辆调度安排信息
     * 
     * @param scheduleId 车辆调度安排主键
     * @return 结果
     */
    @Override
    public int deleteSchedulesByScheduleId(Long scheduleId)
    {
        return schedulesMapper.deleteSchedulesByScheduleId(scheduleId);
    }
}
